<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>cs</title>
<style>
*{
	margin:0;
	padding:0;
	box-sizing:border-box;
}
</style>
</head>
<body>

<button id="fd" type="button">防抖</button>
<button id="jl" type="button">节流</button>

<script type="module">

import {fangdou, jieliu} from "./fangdou.js"

jl.onclick=jieliu(function(){
	console.log(this);
});

fd.onclick=fangdou(function(){
	console.log(this);
});
</script>
</body>
</html>